package org.tgcloud.group.repository;

import org.apache.ibatis.annotations.Param;
import org.tgcloud.group.entity.MjMediumOnline;
import org.tgcloud.group.web.controller.dto.medium.MediumOnlineDTO;

import java.util.List;

public interface MjMediumOnlineMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MjMediumOnline record);

    int insertSelective(MjMediumOnline record);

    MjMediumOnline selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MjMediumOnline record);

    int updateByPrimaryKey(MjMediumOnline record);

    List<MediumOnlineDTO> selectManageList(@Param("keyword") String keyword, @Param("userType") Integer userType, @Param("isBusiness") boolean isBusiness);

    MjMediumOnline selectHasPlateNameByPlateName(@Param("plateName") String plateName);

    int updateStatusById(@Param("id") int id, @Param("status") Short status);

    MediumOnlineDTO selectManageMsg(@Param("id") Integer lineId);
}